export const BASE = 'packageIScratchMain_';

export enum Command {
  //通用修改数据方法
  commonChange = 'packageIScratchMain_commonChange',
  init = 'packageIScratchMain_INIT',
  clean = 'packageIScratchMain_CLEAN',
  changeMaskShow = 'packageIScratchMain_changeMaskShow',
  changeTypeValue = 'packageIScratchMain_changeTypeValue',
  modifyRequest = 'packageIScratchMain_modifyRequest',
  queryResult = 'packageIScratchMain_queryResult',
}

export const OSS_PATH_PREFIX = 'https://ruizhi-ipland.oss-cn-nanjing.aliyuncs.com/catchPlaything';
export const OSS_BASE_PATH_PREFIX = 'https://ruizhi-ipland.oss-cn-nanjing.aliyuncs.com/gameBase';

export const TASK_TYPE_TIMES_NAMES = ['魔力金币雨', '魔力抽盲盒', '魔力赏', '魔力抓娃娃', '魔力抽抽卡', '刮刮乐'];

// 商品图片空
export const IMAGE_EMPTY = 'https://ruizhi-ipland.oss-cn-nanjing.aliyuncs.com/gameBase/gameOnError.png';
export const CODE_SUCCESS = 'K-000000'; // 成功code值

export const GAME_TYPE = 5; //0-魔力金币雨，1-魔力抽盲盒，2-魔力赏，3-魔力抓娃娃，4-魔力抽抽卡，5-刮刮乐

export const SECONDS_FORMAT = 'YYYY-MM-DD HH:mm:ss';

// 抓娃娃结果
export const GAME_RPICE_TYPE = {
  product: 0, //商品
  ticket: 1, //优惠券
  gold: 2, // 金币
  prop: 3, // 道具
  card: 4, // 卡片
};

export const PROP_STAUTS = {
  UNUSE: 0, // 未使用
  USED: 1, // 已使用
  LOSE: 2, //失效
};

// 领取状态值
export const PRIZE_STATUS = {
  UNRECEIVED: 0, // 未领取
  RECEIVED: 1, // 已领取
};

// 结果弹框领取福利跳转
export const RESULT_TYPE = {
  // 礼品
  0: {
    url: '/pages/package-I/collectionCabinet/index',
    label: '稍后您可以在个人中心-收藏柜里查看',
    thum: '',
    className: 'gift',
  },

  // 优惠卷
  1: {
    url: '/pages/package-A/customer/my-coupon/index',
    label: '稍后您可以在商城我的-优惠券里查看',
    thum: OSS_BASE_PATH_PREFIX + '/couponIcon.png',
    className: 'coupon',
  },

  // 魔力币
  2: {
    url: '',
    label: '您已获得魔力币,稍后去账户中查看',
    thum: OSS_BASE_PATH_PREFIX + '/goldIcon.png',
    className: 'gold',
  },
  3: {
    url: '/pages/package-I/backpack/index',
    label: '您已获得道具,稍后去账户中查看',
    thum: OSS_BASE_PATH_PREFIX + '/propIcon.png',
    className: 'prop',
  },
  4: {
    url: '',
    label: '您已获得卡片,稍后去账户中查看',
    thum: '',
    className: 'gift',
  },
};
export const GAME_SHARE_TITLE = '隐藏的大奖，还不快来刮';


// 任务的完成条件
export const TASK_CONDITION_TYPE = {
  browsePage: 0, //浏览页面
  share: 1, // 分享
  game: 2, // 完成游戏
  shopping: 3, // ipshop消费
};

//create by moon https://github.com/creasy2010/moon
